package com.kfit.java8.interfaces;

import java.util.Random;

import com.kfit.java8.interfaces.impl.CalculatorImpl;

public interface Calculator {
	default double addThree(double first, double second, double Third){
		return first + second + Third;
	}
	
	static int randNumber(int min,int max) {
		return new Random().nextInt(max-min+1)+min;
	}
	
	static Calculator getInstance() {
		return new CalculatorImpl();
	}
	
	double add(double first, double second);
	double sub(double first, double second);
	double div(double first, double second);
	double mul(double first, double second);
}
